package OOday01;

/**
 * 汽车类的测试类
 */
public class CarTest {
    public static void main(String[] args) {
        Car wlhg=new Car();
        wlhg.brand="五菱宏光";
        wlhg.color="白色";
        wlhg.price=1000;
        wlhg.capacity=20;
        wlhg.start();
        wlhg.run();
        wlhg.stop();
        Car bb=new Car();
        bb.brand="丰田";
        bb.color="黑色";
        bb.price=20000;
        bb.capacity=5;
        bb.stop();
        bb.run();
        bb.stop();

        Car cc=new Car("xiaomisu7","蓝色",290000,5);
        cc.run();
    }
}
